<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:110:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/public/../application/admin/view/facrm/customer/index/index.html";i:1676906865;s:88:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/layout/default.html";i:1676906865;s:85:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/common/meta.html";i:1676906865;s:87:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/common/script.html";i:1676906865;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <?php echo build_heading(null,FALSE); ?>
        <ul class="nav nav-tabs" data-field="scene_id">
            <?php if(is_array($scene_list) || $scene_list instanceof \think\Collection || $scene_list instanceof \think\Paginator): if( count($scene_list)==0 ) : echo "" ;else: $i=0; foreach($scene_list as $key=>$vo): ++$i; ?>
            <li <?php if($i == 1): ?>class='active'<?php endif; ?>><a  href="#t-<?php echo $key; ?>" data-value="<?php echo $key; ?>" data-toggle="tab"><?php echo $vo; ?></a></li>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="customer_table">
                        <div id="toolbar" class="toolbar">
                            <?php echo build_toolbar('refresh,add'); if($auth->check('facrm/customer/index/import')): ?>
                            <a href="javascript:;" data-url="<?php echo url('facrm/customer.index/import'); ?>" class="btn btn-danger btn-dialog  " title="<?php echo __('批量导入'); ?>"><i class="fa fa-upload"></i> <?php echo __('导入'); ?></a>
                            <?php endif; ?>

                            <div class="dropdown btn-group ">
                                <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> <?php echo __('操作'); ?></a>
                                <ul class="dropdown-menu text-left" role="menu">
                                    <li class="<?php echo $auth->check('facrm/customer/index/discard')?'':'hide'; ?>">
                                        <a class="btn  btn-link  btn-discard  dropdown-toggle btn-disabled disabled" data-url="facrm/customer/index/discard">
                                            <i class="fa fa-close"></i> <?php echo __('放入公海'); ?></a>
                                    </li>
                                    <li class="<?php echo $auth->check('facrm/customer/index/divert')?'':'hide'; ?>">
                                        <a href="javascript:;" data-url="facrm/customer/index/divert" class="btn btn-link  btn-divert btn-disabled disabled " title="<?php echo __('转移客户'); ?>">
                                            <i class="fa fa-mail-reply-all"></i> <?php echo __('转移客户'); ?></a>
                                    <li>
                                    <li class="<?php echo $auth->check('facrm/apps/email/sends')?'':'hide'; ?>">
                                        <a class="btn btn-link  btn-disabled disabled btn-send-emails  "
                                           href="javascript:;" data-title="<?php echo __('批量发邮件'); ?>"
                                           data-types="customer"
                                           data-url="facrm/apps/email/sends"
                                           data-params=""><i class="fa fa-at fa-fw"></i> <?php echo __('批量发邮件'); ?></a>
                                    </li>

                                    <li class="<?php echo $auth->check('facrm/apps/sms/sends')?'':'hide'; ?>">
                                        <a class="btn btn-link  btn-disabled disabled btn-send-emails  "
                                           href="javascript:;" data-title="<?php echo __('批量发短息'); ?>"
                                           data-types="customer"
                                           data-url="facrm/apps/sms/sends"
                                           data-params=""><i class="fa fa-envelope-o fa-fw"></i>  <?php echo __('批量发短息'); ?></a>
                                    </li>
                                    <li class="<?php echo $auth->check('facrm/customer/index/del')?'':'hide'; ?>">
                                        <a class="btn  btn-link  btn-dels dropdown-toggle btn-disabled disabled"
                                           data-url="facrm/customer/index/del"><i class="fa fa-trash"></i> <?php echo __('批量删除'); ?></a>
                                    </li>
									<li class="<?php echo $auth->check('facrm/customer/index/merge')?'':'hide'; ?>">
                                        <a href="javascript:;" data-url="facrm/customer/index/merge" class="btn btn-link  btn-merge btn-disabled disabled " title="<?php echo __('合并客户'); ?>">
                                            <i class="fa fa-mail-reply-all"></i> <?php echo __('合并客户'); ?></a>
                                    <li>



                                </ul>
                            </div>

                            <a class="btn btn-success btn-recyclebin btn-dialog <?php echo $auth->check('facrm/customer/index/recyclebin')?'':'hide'; ?>"
                               href="<?php echo url('facrm/customer.index/recyclebin'); ?>" title="<?php echo __('Recycle bin'); ?>"><i class="fa fa-recycle"></i> <?php echo __('回收站'); ?></a>

                            <?php if($auth->check('facrm/customer/index/recover')): ?>
                            <a href="javascript:;" data-url="<?php echo url('facrm/customer.index/recover'); ?>" class="btn btn-danger btn-dialog  " title="<?php echo __('离职员工客户资料回收'); ?>"><?php echo __('资料回收'); ?></a>
                            <?php endif; ?>

                        </div>
                        <table id="customer" class="table table-striped table-bordered table-hover table-nowrap"
                               data-operate-edit="<?php echo $auth->check('facrm/customer/index/edit'); ?>"
                               data-operate-del="<?php echo $auth->check('facrm/customer/index/del'); ?>"
                               data-operate-add="<?php echo $auth->check('facrm/customer/index/add'); ?>"
                               data-operate-record="<?php echo $auth->check('facrm/customer/record/add'); ?>"
                               data-operate-discard="<?php echo $auth->check('facrm/customer/index/discard'); ?>"
                               width="100%">
                        </table>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

<script>
    var levelList=<?php echo json_encode($levelList); ?>;
    var industryList=<?php echo json_encode($industryList); ?>;
    var sourceList=<?php echo json_encode($sourceList); ?>;
    var scene_list=<?php echo json_encode($scene_list); ?>;
    var from_type="<?php echo input('from_type'); ?>";
</script>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
    </body>
</html>
